<%@ page contentType="text/html;charset=UTF-8" language="java" 
%><%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
  <title>EFFEL</title>
  <link rel="stylesheet" type="text/css" href="main.css"></link>
  </head>
  <body>
  	<stripes:useActionBean beanclass="ru.nsu.effel.actions.RegisterActionBean" var="bean"/>
    <stripes:form beanclass="ru.nsu.effel.actions.ConnectionBidControllerActionBean" method="post">
  			<table class="form">
    			<tr>
      				<td>Username:</td>
      				<td>
        				<stripes:text name="username" value="${actionBean.username}"/>
      				</td>
      				<stripes:errors field="username"/>
    			</tr>
    			<tr>
      				<td>Password:</td>
      				<td>
        				<stripes:text name="password" value="${actionBean.password}"/>
      				</td>
      				<stripes:errors field="password"/>      				
    			</tr>
    			<tr>
      				<td>First name:</td>
      				<td>
        				<stripes:text name="firstname" value="${actionBean.firstname}"/>
      				</td>
      				<stripes:errors field="firstname"/>
    			</tr>
    			<tr>
      				<td>Last name:</td>
      				<td>
        				<stripes:text name="lastname" value="${actionBean.lastname}"/>
      				</td>
      				<stripes:errors field="lastname"/>
    			</tr>
    			<tr>
      				<td>Address:</td>
      				<td>
        				<stripes:text name="address" value="${actionBean.address}"/>
      				</td>
      				<stripes:errors field="address"/>
    			</tr>
    			<tr>
      				<td>Tariff:</td>
      				<td>
      					<stripes:select name="tariff_id">
      					<stripes:option value="">Select One</stripes:option>      					
      					<stripes:options-collection collection="${bean.tariffs}" label="name" value="id"/>      					
      					</stripes:select>
      				</td>
      				<stripes:errors field="tariff_id"/>
    			</tr>
    			<tr>
      				<td>Comments:</td>
      				<td>
        				<stripes:textarea name="comments" value="${actionBean.comments}"/>
      				</td>
      				<stripes:errors field="comments"/>
    			</tr>    			
  			</table>
  			<div class="buttons">
  				<stripes:submit name="createBid" value="Register"/>
  			</div>
	</stripes:form>
  </body>
</html>